import 'package:easy_refresh/easy_refresh.dart';
import 'package:gczn_hd/app/core/base/base_controller.dart';
import 'package:get/get.dart';

class ReportController extends BaseController {


  Rx<EasyRefreshController> gcznPageController = EasyRefreshController(
    controlFinishRefresh: true,
    controlFinishLoad: false,
  ).obs;

   onRefresh() async {
     await Future.delayed(const Duration(seconds: 2));
     gcznPageController.value.finishRefresh();
     gcznPageController.value.resetFooter();
  }

  onLoadNextPage() async {
    await Future.delayed(const Duration(seconds: 2));
    gcznPageController.value.finishLoad(IndicatorResult.noMore, true);
  }

}
